package com.anlu.pattern.action.observer;

/**
 * @author Administrator
 */
public class CustomerObserver implements  Observer{

    private String name;

    public CustomerObserver(String name) {
        this.name = name;
    }

    @Override
    public void update() {
        System.out.println(name+"购买青芒");
    }
}
